home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 27
/
CU Amiga Magazine's Super CD-ROM 27 (1998)(EMAP Images)(GB)[!][issue 1998-10].iso
/
CUCD
/
Programming
/
Mesa
/
src-glut
/
Smakefile
< prev
Wrap
Makefile
|
1998-08-02
|
2KB
|
46 lines
# Makefile for GLUT files
LIBDIR = /lib
LIBSCFLAGS = idlen=63
GLUTFILES1 = glutAddMenuEntry.o glutAddSubMenu.o\
glutAttachDetachMenu.o glutChangeToMenuSubEntry.o\
glutCreateMenu.o glutCreateWindow.o\
glutDestroyMenu.o glutDestroyWindow.o\
glutExtensionSupported.o glutGet.o
GLUTFILES2 = glutGetModifiers.o glutGetSetColor.o\
glutGetSetMenu.o glutGetSetWindow.o\
glutInit.o glutInitDisplayMode.o\
glutInitWindowPosition.o glutInitWindowSize.o\
glutMainLoop.o glutPostRedisplay.o
GLUTFILES3 = glutRemoveMenuItem.o glutSetWindowTitle.o\
glutShapes.o glutstuff.o\
glutSwapBuffers.o glutTeapot.o\
glutXFunc.o glutReshapePositionWindow.o
GLUTFILES = $(GLUTFILES1) $(GLUTFILES2) $(GLUTFILES3)
TMP_FILE = T:GlutTMP_SCOPTS
# Fetures to make and link a shared library for amiga
CC = sc
.c.o:
$(CC) WITH=$(TMP_FILE) $*.c
all: AmigaLibrary $(GLUTFILES) DeleteTMP
@join $(GLUTFILES1) as glutfiles1.o
@join $(GLUTFILES2) as glutfiles2.o
@join $(GLUTFILES3) as glutfiles3.o
oml $(LIBDIR)/GLUT.LIB glutfiles1.o glutfiles2.o glutfiles3.o
@delete glutfiles1.o
@delete glutfiles2.o
@delete glutfiles3.o
AmigaLibrary:
@echo >$(TMP_FILE) "$(LIBSCFLAGS)"
DeleteTMP:
@delete $(TMP_FILE)